package com.naiterui.ehp.bs.emr.service;

import com.naiterui.common.repository.page.PageParamVO;
import com.naiterui.common.repository.page.PageVO;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.emr.vo.openapi.ConsultRecordDetailVO;
import com.naiterui.ehp.bs.emr.vo.openapi.ConsultRecordVO;

/**
 * 诊疗记录业务层
 *
 * @author guoyongxiang
 * @version 1.0.0
 * @date 2021/7/7 13:01
 **/
public interface IOpenEmrService {

    /**
     * 根据就诊人身份证号分页查询诊疗记录列表
     *
     * @param idcard
     * @param pageParamVO
     * @return
     */
    PageVO<ConsultRecordVO> getCaseList(String idcard, PageParamVO pageParamVO) throws BusinessException;

    /**
     * 根据会话查询
     *
     * @param idcard
     * @param sessionId
     * @return
     */
    ConsultRecordDetailVO getCaseDetail(String idcard, String sessionId) throws BusinessException;

    /**
     * 根据就诊人身份证号分页查询诊疗记录列表
     *
     * @param idcard
     * @param pageParamVO
     * @return
     */
    PageVO<ConsultRecordVO> getVideoCaseList(String idcard, PageParamVO pageParamVO) throws BusinessException;

    /**
     * 根据视频问诊ID查询诊疗记录详情
     *
     * @param videoConsultId
     * @return
     */
    ConsultRecordDetailVO getVideoCaseDetail(String idcard, Long videoConsultId) throws BusinessException;

}
